class Controller {
  constructor(name) {
    this.name = name
  }
  update() {
    console.log(this.name + '->update')
  }
}

class UserController extends Controller {
  // constructor(name) {
  //   super(name)
  // }
  view() {
    console.log('UserContorller@view')
  }
}

class PackageController extends Controller {
  view() {
    console.log('packageContorller@view')
  }
}

const lisi = new UserController('李四')
lisi.update()
